package com.example.administrator.officeplatform;

import android.app.Application;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;

/**
 * Created by Administrator on 2017/12/6.
 */
public class MyApplication extends Application {
    private static Context mContext;
    private static boolean isUserLogin=false;
    private static int flag=1;
    private static String  lng;//经度
    private static String lat;//维度
    private OkHttpClient mOkHttpClient;
    private static String  username;
    private static String pasword;
    private static String  msession;
    private static String  orgId;


    @Override
    public void onCreate()
    {
        super.onCreate();
        mContext=getApplicationContext();

    }

    public static String getUsername() {
        return username;
    }

    public static void setUsername(String username) {
        MyApplication.username = username;
    }

    public static String getPasword() {
        return pasword;
    }

    public static void setPasword(String pasword) {
        MyApplication.pasword = pasword;
    }

    public static String getMsession() {
        return msession;
    }

    public static void setMsession(String msession) {
        MyApplication.msession = msession;
    }

    public static Context getmContext() {
        return mContext;
    }

    public static void setmContext(Context mContext) {
        MyApplication.mContext = mContext;
    }


    public static boolean getIsUserLogin() {
        return isUserLogin;
    }

    public static void setIsUserLogin(boolean isUserLogin) {
        MyApplication.isUserLogin = isUserLogin;
    }

    public static int getFlag() {
        return flag;
    }

    public static void setFlag(int flag) {
        MyApplication.flag = flag;
    }

    public static String getLng() {
        return lng;
    }

    public static void setLng(String lng) {
        MyApplication.lng = lng;
    }

    public static String getLat() {
        return lat;
    }

    public static void setLat(String lat) {
        MyApplication.lat = lat;
    }

    public static String getOrgId() {
        return orgId;
    }

    public static void setOrgId(String orgId) {
        MyApplication.orgId = orgId;
    }

}
